home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI VBL Sample 06⁄07 ƒ / Src / SCSIVBLSample.r < prev   
Encoding:
Text File  |  1994-06-16  |  2.4 KB  |  124 lines  |  [TEXT/KAHL]

  1. /*                                        SCSIVBLSample.r                                */
  2. /*
  3.  * SCSIVBLSample.r
  4.  * Copyright © 1994 Apple Computer Inc. All rights reserved.
  5.  */
  6. #define REZ
  7. #include "Types.r"
  8. #include "SysTypes.r"
  9. #include "SCSIVBLSample.h"
  10.  
  11. #ifdef __powerc
  12. /*
  13.  * All Power PC applications need a code-fragment resource that the code
  14.  * fragment manager uses to facilitate dynamic fragment binding.
  15.  */
  16. #include "CodeFragmentTypes.r"
  17.     
  18. resource 'cfrg' (0) {
  19.     {
  20.         kPowerPC,
  21.         kFullLib,
  22.         kNoVersionNum,
  23.         kNoVersionNum,
  24.         kDefaultStackSize,
  25.         kNoAppSubFolder,
  26.         kIsApp,
  27.         kOnDiskFlat,
  28.         kZeroOffset,
  29.         kWholeFork,
  30.         "SCSIDriveIDSample"
  31.     }
  32. };
  33. #endif
  34.  
  35. resource 'ALRT' (ALRT_NoNewSCSI, "New SCSI Manager Missing") {        
  36.     {  85,  85, 260, 400 },
  37.     ALRT_NoNewSCSI,
  38.     {
  39.         OK, visible, silent,
  40.         OK, visible, silent,
  41.         OK, visible, silent,
  42.         OK, visible, silent,
  43.     }
  44. };
  45.  
  46. resource 'DITL' (ALRT_NoNewSCSI, "New SCSI Manager Missing") {
  47.     {
  48.         { 128, 200, 148, 286 },    Button        { enabled,                "Exit"        },
  49.         {   8,  72, 117, 290 },    StaticText    { disabled,
  50.             "This application requires SCSI Manager 4.3."
  51.         },
  52.     }
  53. };
  54.  
  55.  
  56. resource 'ALRT' (ALRT_Info, "Drive Status", purgeable) {
  57.     {100, 80, 210, 440},
  58.     ALRT_Info,
  59.     {
  60.         OK, visible, silent,
  61.         OK, visible, silent,
  62.         OK, visible, silent,
  63.         OK, visible, silent
  64.     }
  65. };
  66.  
  67. resource 'DITL' (ALRT_Info, "Inquiry Info", purgeable) {
  68.     {
  69.         { 80, 280, 100, 340}, Button        { enabled,    "OK"                    },
  70.         { 80, 180, 100, 240}, Button        { enabled,    "Exit"                    },
  71.         { 10,  70,  70, 350}, StaticText    { disabled,
  72.                 "Drive Status: ^0"
  73.             },
  74.     }
  75. };
  76.  
  77. resource 'ALRT' (ALRT_Finished, "Finished info", purgeable) {
  78.     {100, 80, 260, 440},
  79.     ALRT_Finished,
  80.     {
  81.         OK, visible, silent,
  82.         OK, visible, silent,
  83.         OK, visible, silent,
  84.         OK, visible, silent
  85.     }
  86. };
  87.  
  88. resource 'DITL' (ALRT_Finished, "Finished info", purgeable) {
  89.     {
  90.         { 130, 200, 150, 286 },    Button        { enabled,                "OK"        },
  91.         {   8,  72, 120, 290 },    StaticText    { disabled,
  92.             "VBLTasks ^0\n"
  93.             "SCSI Completions ^1\n"
  94.             "SCSI was busy in VBL ^2\n"
  95.             "EventLoop cycles ^3"
  96.         },
  97.     }
  98. };
  99.  
  100. resource 'ALRT' (ALRT_Error, "Error", purgeable) {
  101.     {100, 80, 210, 440},
  102.     ALRT_Error,
  103.     {
  104.         OK, visible, silent,
  105.         OK, visible, silent,
  106.         OK, visible, silent,
  107.         OK, visible, silent
  108.     }
  109. };
  110.  
  111. resource 'DITL' (ALRT_Error, "Error", purgeable) {
  112.     {
  113.         { 80, 280, 100, 340}, Button        { enabled,    "OK"                        },
  114.         { 80, 180, 100, 240}, Button        { enabled,    "Exit"                        },
  115.         { 10,  70,  70, 350}, StaticText    { disabled,
  116.                 "System Error ^0.\n"
  117.                 "(^1)."
  118.             },
  119.     }
  120. };
  121.  
  122.  
  123.  
  124.